<!-- HTML header for doxygen 1.8.20-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=9"/>
	<meta name="generator" content="Doxygen 1.9.4"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>Raspberry Pi Pico SDK: fifo</title>
	<!-- <link href="tabs.css" rel="stylesheet" type="text/css"/> -->
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="dynsections.js"></script>
	<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
	<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
	<link href="doxygen.css" rel="stylesheet" type="text/css" />
	<link href="normalise.css" rel="stylesheet" type="text/css"/>
<link href="main.css" rel="stylesheet" type="text/css"/>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="navigation-mobile">
		<div class="logo--mobile">
			<a href="/"><img src="logo-mobile.svg" alt="Raspberry Pi"></a>
		</div>
		<div class="navigation-toggle">
			<span class="line-1"></span>
			<span class="line-2">
				<p>Menu Toggle</p>
			</span>
			<span class="line-3"></span>
		</div>
	</div>
	<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
		<div class="logo">
			<a href="index.html"> <img src="logo.svg" alt="Raspberry Pi"></a>
			<span style="display: inline-block; margin-top: 10px;">
				v2.0.0
			</span>
		</div>
		<div class="navigation-footer">
			<img src="logo-mobile.svg" alt="Raspberry Pi">
			<a href="https://www.raspberrypi.com/" target="_blank">By Raspberry Pi Ltd</a>
		</div>
<!-- 		<div class="search">
			<form>
				<input type="search" name="search" id="search" placeholder="Search">
				<input type="submit" value="Search">
			</form>
		</div> -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('group__multicore__fifo.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">fifo<div class="ingroups"><a class="el" href="group__high__level.html">High Level APIs</a> &raquo; <a class="el" href="group__pico__multicore.html">pico_multicore</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Functions for the inter-core FIFOs.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaffd246b81370d37fc13181a561303834"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__multicore__fifo.html#gaffd246b81370d37fc13181a561303834">multicore_fifo_rvalid</a> (void)</td></tr>
<tr class="memdesc:gaffd246b81370d37fc13181a561303834"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check the read FIFO to see if there is data available (sent by the other core)  <a href="group__multicore__fifo.html#gaffd246b81370d37fc13181a561303834">More...</a><br /></td></tr>
<tr class="separator:gaffd246b81370d37fc13181a561303834"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6065367210695961c11ab3706140d3a9"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__multicore__fifo.html#ga6065367210695961c11ab3706140d3a9">multicore_fifo_wready</a> (void)</td></tr>
<tr class="memdesc:ga6065367210695961c11ab3706140d3a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check the write FIFO to see if it has space for more data.  <a href="group__multicore__fifo.html#ga6065367210695961c11ab3706140d3a9">More...</a><br /></td></tr>
<tr class="separator:ga6065367210695961c11ab3706140d3a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga134933a693c53c4f94c9d3cd3cabfc79"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__multicore__fifo.html#ga134933a693c53c4f94c9d3cd3cabfc79">multicore_fifo_push_blocking</a> (uint32_t data)</td></tr>
<tr class="memdesc:ga134933a693c53c4f94c9d3cd3cabfc79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Push data on to the write FIFO (data to the other core).  <a href="group__multicore__fifo.html#ga134933a693c53c4f94c9d3cd3cabfc79">More...</a><br /></td></tr>
<tr class="separator:ga134933a693c53c4f94c9d3cd3cabfc79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga559050fb6fd4a37ccc81ef6272cbf34b"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__multicore__fifo.html#ga559050fb6fd4a37ccc81ef6272cbf34b">multicore_fifo_push_blocking_inline</a> (uint32_t data)</td></tr>
<tr class="memdesc:ga559050fb6fd4a37ccc81ef6272cbf34b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Push data on to the write FIFO (data to the other core).  <a href="group__multicore__fifo.html#ga559050fb6fd4a37ccc81ef6272cbf34b">More...</a><br /></td></tr>
<tr class="separator:ga559050fb6fd4a37ccc81ef6272cbf34b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0c32cfcd182d5f1d3a25b6fb503352b7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__multicore__fifo.html#ga0c32cfcd182d5f1d3a25b6fb503352b7">multicore_fifo_push_timeout_us</a> (uint32_t data, uint64_t timeout_us)</td></tr>
<tr class="memdesc:ga0c32cfcd182d5f1d3a25b6fb503352b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Push data on to the write FIFO (data to the other core) with timeout.  <a href="group__multicore__fifo.html#ga0c32cfcd182d5f1d3a25b6fb503352b7">More...</a><br /></td></tr>
<tr class="separator:ga0c32cfcd182d5f1d3a25b6fb503352b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga929272dd1056d8ae05667beda4adb0fc"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__multicore__fifo.html#ga929272dd1056d8ae05667beda4adb0fc">multicore_fifo_pop_blocking</a> (void)</td></tr>
<tr class="memdesc:ga929272dd1056d8ae05667beda4adb0fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pop data from the read FIFO (data from the other core).  <a href="group__multicore__fifo.html#ga929272dd1056d8ae05667beda4adb0fc">More...</a><br /></td></tr>
<tr class="separator:ga929272dd1056d8ae05667beda4adb0fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga282badad31e14f5b593ec1ddffae08f5"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__multicore__fifo.html#ga282badad31e14f5b593ec1ddffae08f5">multicore_fifo_pop_blocking_inline</a> (void)</td></tr>
<tr class="memdesc:ga282badad31e14f5b593ec1ddffae08f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pop data from the read FIFO (data from the other core).  <a href="group__multicore__fifo.html#ga282badad31e14f5b593ec1ddffae08f5">More...</a><br /></td></tr>
<tr class="separator:ga282badad31e14f5b593ec1ddffae08f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga27824f253c72ae50ae97e6f516220c60"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__multicore__fifo.html#ga27824f253c72ae50ae97e6f516220c60">multicore_fifo_pop_timeout_us</a> (uint64_t timeout_us, uint32_t *out)</td></tr>
<tr class="memdesc:ga27824f253c72ae50ae97e6f516220c60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pop data from the read FIFO (data from the other core) with timeout.  <a href="group__multicore__fifo.html#ga27824f253c72ae50ae97e6f516220c60">More...</a><br /></td></tr>
<tr class="separator:ga27824f253c72ae50ae97e6f516220c60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga436e676544edeafb2f2f9e7245282cbf"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__multicore__fifo.html#ga436e676544edeafb2f2f9e7245282cbf">multicore_fifo_drain</a> (void)</td></tr>
<tr class="memdesc:ga436e676544edeafb2f2f9e7245282cbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Discard any data in the read FIFO.  <a href="group__multicore__fifo.html#ga436e676544edeafb2f2f9e7245282cbf">More...</a><br /></td></tr>
<tr class="separator:ga436e676544edeafb2f2f9e7245282cbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga96583311e8237cf590d9c78052b288eb"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__multicore__fifo.html#ga96583311e8237cf590d9c78052b288eb">multicore_fifo_clear_irq</a> (void)</td></tr>
<tr class="memdesc:ga96583311e8237cf590d9c78052b288eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear FIFO interrupt.  <a href="group__multicore__fifo.html#ga96583311e8237cf590d9c78052b288eb">More...</a><br /></td></tr>
<tr class="separator:ga96583311e8237cf590d9c78052b288eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7c5944bf2b7266465dfe6d4bac4b1c58"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__multicore__fifo.html#ga7c5944bf2b7266465dfe6d4bac4b1c58">multicore_fifo_get_status</a> (void)</td></tr>
<tr class="memdesc:ga7c5944bf2b7266465dfe6d4bac4b1c58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get FIFO statuses.  <a href="group__multicore__fifo.html#ga7c5944bf2b7266465dfe6d4bac4b1c58">More...</a><br /></td></tr>
<tr class="separator:ga7c5944bf2b7266465dfe6d4bac4b1c58"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p >Functions for the inter-core FIFOs. </p>
<p >RP-series microcontrollers contains two FIFOs for passing data, messages or ordered events between the two cores. Each FIFO is 32 bits wide, and 8 entries deep on the RP2040, and 4 entries deep on the RP2350. One of the FIFOs can only be written by core 0, and read by core 1. The other can only be written by core 1, and read by core 0.</p>
<dl class="section note"><dt>Note</dt><dd>The inter-core FIFOs are a very precious resource and are frequently used for SDK functionality (e.g. during core 1 launch or by the <a class="el" href="group__multicore__lockout.html">lockout</a> functions). Additionally they are often required for the exclusive use of an RTOS (e.g. FreeRTOS SMP). For these reasons it is suggested that you do not use the FIFO for your own purposes unless none of the above concerns apply; the majority of cases for transferring data between cores can be eqaully well handled by using a <a class="el" href="group__queue.html">queue</a> </dd></dl>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga96583311e8237cf590d9c78052b288eb" name="ga96583311e8237cf590d9c78052b288eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga96583311e8237cf590d9c78052b288eb">&#9670;&nbsp;</a></span>multicore_fifo_clear_irq()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void multicore_fifo_clear_irq </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Clear FIFO interrupt. </p>
<p >Note that this only clears an interrupt that was caused by the ROE or WOF flags. To clear the VLD flag you need to use one of the 'pop' or 'drain' functions.</p>
<p >See the note in the <a class="el" href="group__multicore__fifo.html">fifo</a> section for considerations regarding use of the inter-core FIFOs</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__multicore__fifo.html#ga7c5944bf2b7266465dfe6d4bac4b1c58" title="Get FIFO statuses.">multicore_fifo_get_status</a> </dd></dl>

</div>
</div>
<a id="ga436e676544edeafb2f2f9e7245282cbf" name="ga436e676544edeafb2f2f9e7245282cbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga436e676544edeafb2f2f9e7245282cbf">&#9670;&nbsp;</a></span>multicore_fifo_drain()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void multicore_fifo_drain </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Discard any data in the read FIFO. </p>
<p >See the note in the <a class="el" href="group__multicore__fifo.html">fifo</a> section for considerations regarding use of the inter-core FIFOs </p>

</div>
</div>
<a id="ga7c5944bf2b7266465dfe6d4bac4b1c58" name="ga7c5944bf2b7266465dfe6d4bac4b1c58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7c5944bf2b7266465dfe6d4bac4b1c58">&#9670;&nbsp;</a></span>multicore_fifo_get_status()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t multicore_fifo_get_status </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get FIFO statuses. </p>
<dl class="section return"><dt>Returns</dt><dd>The statuses as a bitfield</dd></dl>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadNone">Bit   </th><th class="markdownTableHeadNone">Description    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone">3   </td><td class="markdownTableBodyNone">Sticky flag indicating the RX FIFO was read when empty (ROE). This read was ignored by the FIFO.    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone">2   </td><td class="markdownTableBodyNone">Sticky flag indicating the TX FIFO was written when full (WOF). This write was ignored by the FIFO.    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone">1   </td><td class="markdownTableBodyNone">Value is 1 if this core’s TX FIFO is not full (i.e. if FIFO_WR is ready for more data)    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone">0   </td><td class="markdownTableBodyNone">Value is 1 if this core’s RX FIFO is not empty (i.e. if FIFO_RD is valid)   </td></tr>
</table>
<p >See the note in the <a class="el" href="group__multicore__fifo.html">fifo</a> section for considerations regarding use of the inter-core FIFOs </p>

</div>
</div>
<a id="ga929272dd1056d8ae05667beda4adb0fc" name="ga929272dd1056d8ae05667beda4adb0fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga929272dd1056d8ae05667beda4adb0fc">&#9670;&nbsp;</a></span>multicore_fifo_pop_blocking()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t multicore_fifo_pop_blocking </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pop data from the read FIFO (data from the other core). </p>
<p >This function will block until there is data ready to be read Use <a class="el" href="group__multicore__fifo.html#gaffd246b81370d37fc13181a561303834" title="Check the read FIFO to see if there is data available (sent by the other core)">multicore_fifo_rvalid()</a> to check if data is ready to be read if you don't want to block.</p>
<p >See the note in the <a class="el" href="group__multicore__fifo.html">fifo</a> section for considerations regarding use of the inter-core FIFOs</p>
<dl class="section return"><dt>Returns</dt><dd>32 bit data from the read FIFO. </dd></dl>

</div>
</div>
<a id="ga282badad31e14f5b593ec1ddffae08f5" name="ga282badad31e14f5b593ec1ddffae08f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga282badad31e14f5b593ec1ddffae08f5">&#9670;&nbsp;</a></span>multicore_fifo_pop_blocking_inline()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t multicore_fifo_pop_blocking_inline </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Pop data from the read FIFO (data from the other core). </p>
<p >This function will block until there is data ready to be read Use <a class="el" href="group__multicore__fifo.html#gaffd246b81370d37fc13181a561303834" title="Check the read FIFO to see if there is data available (sent by the other core)">multicore_fifo_rvalid()</a> to check if data is ready to be read if you don't want to block.</p>
<p >See the note in the <a class="el" href="group__multicore__fifo.html">fifo</a> section for considerations regarding use of the inter-core FIFOs</p>
<dl class="section return"><dt>Returns</dt><dd>32 bit data from the read FIFO. </dd></dl>

</div>
</div>
<a id="ga27824f253c72ae50ae97e6f516220c60" name="ga27824f253c72ae50ae97e6f516220c60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga27824f253c72ae50ae97e6f516220c60">&#9670;&nbsp;</a></span>multicore_fifo_pop_timeout_us()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool multicore_fifo_pop_timeout_us </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>timeout_us</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>out</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pop data from the read FIFO (data from the other core) with timeout. </p>
<p >This function will block until there is data ready to be read or the timeout is reached</p>
<p >See the note in the <a class="el" href="group__multicore__fifo.html">fifo</a> section for considerations regarding use of the inter-core FIFOs</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">timeout_us</td><td>the timeout in microseconds </td></tr>
    <tr><td class="paramname">out</td><td>the location to store the popped data if available </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the data was popped and a value copied into <code>out</code>, false if the timeout occurred before data could be popped </dd></dl>

</div>
</div>
<a id="ga134933a693c53c4f94c9d3cd3cabfc79" name="ga134933a693c53c4f94c9d3cd3cabfc79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga134933a693c53c4f94c9d3cd3cabfc79">&#9670;&nbsp;</a></span>multicore_fifo_push_blocking()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void multicore_fifo_push_blocking </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Push data on to the write FIFO (data to the other core). </p>
<p >This function will block until there is space for the data to be sent. Use <a class="el" href="group__multicore__fifo.html#ga6065367210695961c11ab3706140d3a9">multicore_fifo_wready()</a> to check if it is possible to write to the FIFO if you don't want to block.</p>
<p >See the note in the <a class="el" href="group__multicore__fifo.html">fifo</a> section for considerations regarding use of the inter-core FIFOs</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>A 32 bit value to push on to the FIFO </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga559050fb6fd4a37ccc81ef6272cbf34b" name="ga559050fb6fd4a37ccc81ef6272cbf34b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga559050fb6fd4a37ccc81ef6272cbf34b">&#9670;&nbsp;</a></span>multicore_fifo_push_blocking_inline()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void multicore_fifo_push_blocking_inline </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Push data on to the write FIFO (data to the other core). </p>
<p >This function will block until there is space for the data to be sent. Use <a class="el" href="group__multicore__fifo.html#ga6065367210695961c11ab3706140d3a9" title="Check the write FIFO to see if it has space for more data.">multicore_fifo_wready()</a> to check if it is possible to write to the FIFO if you don't want to block.</p>
<p >See the note in the <a class="el" href="group__multicore__fifo.html">fifo</a> section for considerations regarding use of the inter-core FIFOs</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>A 32 bit value to push on to the FIFO </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga0c32cfcd182d5f1d3a25b6fb503352b7" name="ga0c32cfcd182d5f1d3a25b6fb503352b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0c32cfcd182d5f1d3a25b6fb503352b7">&#9670;&nbsp;</a></span>multicore_fifo_push_timeout_us()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool multicore_fifo_push_timeout_us </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>timeout_us</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Push data on to the write FIFO (data to the other core) with timeout. </p>
<p >This function will block until there is space for the data to be sent or the timeout is reached</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>A 32 bit value to push on to the FIFO </td></tr>
    <tr><td class="paramname">timeout_us</td><td>the timeout in microseconds </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the data was pushed, false if the timeout occurred before data could be pushed </dd></dl>

</div>
</div>
<a id="gaffd246b81370d37fc13181a561303834" name="gaffd246b81370d37fc13181a561303834"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaffd246b81370d37fc13181a561303834">&#9670;&nbsp;</a></span>multicore_fifo_rvalid()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool multicore_fifo_rvalid </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check the read FIFO to see if there is data available (sent by the other core) </p>
<p >See the note in the <a class="el" href="group__multicore__fifo.html">fifo</a> section for considerations regarding use of the inter-core FIFOs</p>
<dl class="section return"><dt>Returns</dt><dd>true if the FIFO has data in it, false otherwise </dd></dl>

</div>
</div>
<a id="ga6065367210695961c11ab3706140d3a9" name="ga6065367210695961c11ab3706140d3a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6065367210695961c11ab3706140d3a9">&#9670;&nbsp;</a></span>multicore_fifo_wready()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool multicore_fifo_wready </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check the write FIFO to see if it has space for more data. </p>
<p >See the note in the <a class="el" href="group__multicore__fifo.html">fifo</a> section for considerations regarding use of the inter-core FIFOs</p>
<dl class="section return"><dt>Returns</dt><dd>true if the FIFO has room for more data, false otherwise </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->

	<script src="main.js"></script>
</body>
</html>